home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 1 / The 640 Meg Shareware Studio CD-ROM Volume I (Data Express)(1992).ISO / driver / macpab1.dsk / MACPA1.ZIP / AUDIODD / SOURCE / DEMOMSG.H < prev    next >
Text File  |  1992-06-30  |  38KB  |  801 lines

  1. /**************************************************************************/
  2. /**************************************************************************/
  3. /**************************************************************************/
  4. /* Copyright International Business Machines Corp. 1991, 1992.            */
  5. /*                                                                        */
  6. /* All Rights Reserved                                                    */
  7. /*                                                                        */
  8. /* Refer to "LICENSE.DOC" for information regarding the use of this file. */
  9. /**************************************************************************/
  10. /**************************************************************************/
  11. /**************************************************************************/
  12. #define yes         'y'
  13. #define YES         'Y' /* capital letter to be input when user wants to     */
  14.                         /* to answer positively to a question                */
  15.  
  16. #define play_file   'p'
  17. #define PLAY_FILE   'P'
  18.  
  19. #define rcd_file    'r'
  20. #define RCD_FILE    'R'
  21.  
  22. #define BLANK_70 "                                                                    "
  23.  
  24. #define CLEARSCRN 99
  25. #define BLANK     98
  26.  
  27. /*****************************************************************************/
  28. /* Title Messages - 80 characters wide / 2 lines each                        */
  29. /*****************************************************************************/
  30. #define TITLE_NUM  3
  31. #define TITLE_LINE 2
  32.  
  33. #define PLAYBACK   0
  34. #define RCD        1
  35. #define GENERAL    2
  36.  
  37. char            title_msg     [TITLE_NUM][TITLE_LINE][80] = {
  38.  "          Welcome to the IBM Audio Device Driver Playback Demo Program        \0",
  39.  "                                                                              \0",
  40.  
  41.  "           Welcome to the IBM Audio Device Driver Record Demo Program         \0",
  42.  "                                                                              \0",
  43.  
  44.  "           Welcome to the IBM Audio Device Driver Demo Program                \0",
  45.  "                                                                              \0"
  46.  };
  47.  
  48. /*****************************************************************************/
  49. /* Copyright Message - 80 characters wide / 1 line */
  50. /*****************************************************************************/
  51. #define COPY_NUM  1
  52. #define COPY_LINE 1
  53.  
  54. char            copyright_msg [COPY_NUM][COPY_LINE][80] = {
  55. "           (C)Copyright IBM Corp. 1991, 1992.  ALL RIGHTS RESERVED            \0"
  56. };
  57.  
  58. /*****************************************************************************/
  59. /* User Input Messages  70 characters wide / 2 lines each                    */
  60. /*****************************************************************************/
  61. #define USER_NUM  10
  62. #define USER_LINE 2
  63.  
  64. #define PLAYFILE  0
  65. #define PLAYRCD   1
  66. #define RCDFILE   2
  67. #define TPQN      3
  68. #define PMODE     4
  69. #define PCMMODES  5
  70. #define AVCMODES  6
  71. #define CVSDMODES 7
  72. #define INPMODE   8
  73. #define OUTMODE   9
  74.  
  75. char            user_msg      [USER_NUM][USER_LINE][70] = {
  76. "        Please enter the name of the MIDI standard file or the      \0",
  77. "        waveform file that you would like to hear played:           \0",
  78.  
  79. "        Would you like to 'P'lay a music file or                    \0",
  80. "        'R'ecord one? (enter 'p' or 'r') \0",
  81.  
  82. "        Please enter the name of the file you would                 \0",
  83. "        like created:                                               \0",
  84.  
  85. "        Please enter the value for ticks per quarter note:          \0",
  86. "                                                                    \0",
  87.  
  88. "        Please enter the mode you would like to use:                \0",
  89. "                                                                    \0",
  90.  
  91. "        Please enter the sampling rate/bits per sample you          \0",
  92. "        would like to use: \0",
  93.  
  94. "        Please enter the type of ADPCM you would like to use:       \0",
  95. "                                                                    \0",
  96.  
  97. "        Please enter the type of CVSD you would like to use:        \0",
  98. "                                                                    \0",
  99.  
  100. "        Please enter the type of input that you would like          \0",
  101. "        to use: \0",
  102.  
  103. "        Please enter the type of output that you would like         \0",
  104. "        to use: \0"
  105.  
  106. };
  107.  
  108. /*****************************************************************************/
  109. /* Yes/No Question      no more than 69 characters wide / 1 line each        */
  110. /*****************************************************************************/
  111. #define YNQUEST_NUM  1
  112. #define YNQUEST_LINE 1
  113.  
  114. #define WANTVERBOSE  0
  115.  
  116. char            ynquest_msg   [YNQUEST_NUM][YNQUEST_LINE][70] = {
  117. "      Do you want to see all intermediate information messages? \0"
  118. };
  119.  
  120. /*****************************************************************************/
  121. /* Volume/Balace Help   no more than 70 characters wide / 1 line each        */
  122. /*****************************************************************************/
  123. #define VBHELP_NUM  1
  124. #define VBHELP_LINE 1
  125.  
  126. #define VOLBAL      0
  127.  
  128. char            vbhelp_msg    [VBHELP_NUM][VBHELP_LINE][70] = {
  129. "    Press 0 - 9 to set volume, 'L','M','R' to set balance.          \0"
  130. };
  131.  
  132. /*****************************************************************************/
  133. /* Status Messages  70 characters wide / 1 line each                         */
  134. /*****************************************************************************/
  135. #define STATUS_NUM  5
  136. #define STATUS_LINE 1
  137.  
  138. #define EXITDEMO    0
  139. #define LOADING     1
  140. #define STARTSTOP   2
  141. #define CONTINUE    3
  142. #define CONTESC     4
  143.  
  144. char            status_msg    [STATUS_NUM][STATUS_LINE][70] = {
  145. "              Press ESC to exit demo program                        \0",
  146.  
  147. "      Loading code                                                  \0",
  148.  
  149. "         Press space bar to start/stop, Esc to quit.                \0",
  150.  
  151. "         Press any key to continue......                            \0",
  152.  
  153. "         Press <ESC> to continue.....                               \0"
  154. };
  155.  
  156. /*****************************************************************************/
  157. /* Error Messages  70 characters wide / 4 lines each                         */
  158. /*****************************************************************************/
  159. #define ERROR_NUM   38
  160. #define ERROR_LINE  4
  161.  
  162. #define DOESNTEXIST    0
  163. #define HDRTOOBIG      1
  164. #define ERRHDRDATA     2
  165. #define NOMEMORY       3
  166. #define ERRTRKDATA     4
  167. #define FILNOTFNDP     5
  168. #define FILNOTFNDR     6
  169. #define EINITIOCTL     7
  170. #define ETIMEINIT      8
  171. #define READAUD        9
  172. #define DISKFULL       10
  173. #define INITFAILED     11
  174. #define HPIIOCTL       12
  175. #define DSPOPEN        13
  176. #define NOMEMDSP       14
  177. #define UNRECOG        15
  178. #define UNSUPRIFF      16
  179. #define NOTPCMDATA     17
  180. #define ECHNGIOCTL     18
  181. #define NOMEMSYS       19
  182. #define EAUDIOLOAD     20
  183. #define EDSPLOAD       21
  184. #define MALLOCERR      22
  185. #define BATCHFUNC      23
  186. #define BATCHNUMP      24
  187. #define CBINVALID      25
  188. #define NUMINVALID     26
  189. #define SIZEINVALID    27
  190. #define NOSIZE         28
  191. #define NONUM          29
  192. #define CREATESEM      30
  193. #define CLOSESEM       31
  194. #define WAITIOCTL      32
  195. #define EUPDATEIOCTL   33
  196. #define DELAYINVALID   34
  197. #define EUPDATEINVALID 35
  198. #define EUPDATEMIDI    36
  199. #define EUPDATEWREC    37
  200.  
  201. char            error_msg     [ERROR_NUM][ERROR_LINE][70] = {
  202. "                                                                    \0",
  203. "                Open failed, file does not exist.                   \0",
  204. "                                                                    \0",
  205. "                                                                    \0",
  206.  
  207. "                                                                    \0",
  208. "                Header Chunk too big for buffer.                    \0",
  209. "                                                                    \0",
  210. "                                                                    \0",
  211.  
  212. "                                                                    \0",
  213. "                Error reading header data.                          \0",
  214. "                                                                    \0",
  215. "                                                                    \0",
  216.  
  217. "                                                                    \0",
  218. "                Not enough memory to load track data.               \0",
  219. "                                                                    \0",
  220. "                                                                    \0",
  221.  
  222. "                                                                    \0",
  223. "                Error reading track data.                           \0",
  224. "                                                                    \0",
  225. "                                                                    \0",
  226.  
  227. "          Unable to open the input file:                            \0",
  228. "                                                                    \0",
  229. "                                                                    \0",
  230. "          Please check the file name and enter it again.            \0",
  231.  
  232. "          Unable to open the output file:                           \0",
  233. "                                                                    \0",
  234. "                                                                    \0",
  235. "          Please check the file name and enter it again.            \0",
  236.  
  237. "                                                                    \0",
  238. "          Error from init IOCTL:                                    \0",
  239. "                                                                    \0",
  240. "                                                                    \0",
  241.  
  242. "                                                                    \0",
  243. "          Error writing timinit:                                    \0",
  244. "                                                                    \0",
  245. "                                                                    \0",
  246.  
  247. "      Error reading data from Audio Device:                         \0",
  248. "                                                                    \0",
  249. "             Bytes being read: \0",
  250. "             Total bytes written: \0",
  251.  
  252. "             Error writing data to:                                 \0",
  253. "                                                                    \0",
  254. "                                                                    \0",
  255. "                Disk may be full.                                   \0",
  256.  
  257. "                                                                    \0",
  258. "          Initialization of the Audio device was unsuccessful.      \0",
  259. "                                                                    \0",
  260. "                                                                    \0",
  261.  
  262. "                                                                    \0",
  263. "          Error on Audio High Performance Interface IOCTL:          \0",
  264. "                                                                    \0",
  265. "                                                                    \0",
  266.  
  267. "                                                                    \0",
  268. "          Cannot open DSP file:                                     \0",
  269. "                                                                    \0",
  270. "                                                                    \0",
  271.  
  272. "                                                                    \0",
  273. "          Not enough memory to load DSP module.                     \0",
  274. "                                                                    \0",
  275. "                                                                    \0",
  276.  
  277. "     File format is not recognized as either of the supported       \0",
  278. "     formats for this program. Supported formats are MIDI Standard  \0",
  279. "     Files and RIFF Waveform, MIDI Audio, or 'ibmw' file formats.   \0",
  280. "                                                                    \0",
  281.  
  282. "     RIFF file format is not supported.                             \0",
  283. "                                                                    \0",
  284. "     'WAVE', 'RMID', and 'ibmw' form types are the only supported   \0",
  285. "     RIFF file formats.                                             \0",
  286.  
  287. "                                                                    \0",
  288. "     File contains an unsupported waveform data type.               \0",
  289. "     ADPCM, PCM, A Law, and Mu Law are supported by this program.   \0",
  290. "                                                                    \0",
  291.  
  292. "                                                                    \0",
  293. "          Error from Audio Change IOCTL call:                       \0",
  294. "                                                                    \0",
  295. "                                                                    \0",
  296.  
  297. "                                                                    \0",
  298. "     System Exclusive message is too large.                         \0",
  299. "                                                                    \0",
  300. "                                                                    \0",
  301.  
  302. "                                                                    \0",
  303. "       Error from AUDIO_LOAD IOCTL call:                            \0",
  304. "                                                                    \0",
  305. "                                                                    \0",
  306.  
  307. "                                                                    \0",
  308. "       Error from DSPLOAD call:                                     \0",
  309. "                                                                    \0",
  310. "                                                                    \0",
  311.  
  312. "                                                                    \0",
  313. "       Not enough memory available for buffers.                     \0",
  314. "                                                                    \0",
  315. "                                                                    \0",
  316.  
  317. "                                                                    \0",
  318. "       Invalid function specified, batch mode aborted.              \0",
  319. "                                                                    \0",
  320. "                                                                    \0",
  321.  
  322. "                                                                    \0",
  323. "       Not enough parameters specified for /B option.               \0",
  324. "       Batch mode aborted.                                          \0",
  325. "                                                                    \0",
  326.  
  327. "                                                                    \0",
  328. "       Invalid callback mask or number specified.                   \0",
  329. "       No callback will be done.                                    \0",
  330. "                                                                    \0",
  331.  
  332. "                                                                    \0",
  333. "       Invalid audio device number specified.                       \0",
  334. "       '1' is being used.                                           \0",
  335. "                                                                    \0",
  336.  
  337. "                                                                    \0",
  338. "       Buffer size too large. 65000 is being used.                  \0",
  339. "                                                                    \0",
  340. "                                                                    \0",
  341.  
  342. "                                                                    \0",
  343. "       Not enough buffer sizes were specified.                      \0",
  344. "       Remaining buffers will have a size of 0.                     \0",
  345. "                                                                    \0",
  346.  
  347. "                                                                    \0",
  348. "       Number of buffers was not specified.                         \0",
  349. "       1 buffers is being used.                                     \0",
  350. "                                                                    \0",
  351.  
  352. "                                                                    \0",
  353. "       Error creating semaphore.                                    \0",
  354. "                                                                    \0",
  355. "                                                                    \0",
  356.  
  357. "                                                                    \0",
  358. "       Error closing semaphore.                                     \0",
  359. "                                                                    \0",
  360. "                                                                    \0",
  361.  
  362. "                                                                    \0",
  363. "       Error from AUDIO_WAIT call:                                  \0",
  364. "                                                                    \0",
  365. "                                                                    \0",
  366.  
  367. "                                                                    \0",
  368. "       Error from AUDIO_UPDATE call:                                \0",
  369. "                                                                    \0",
  370. "                                                                    \0",
  371.  
  372. "                                                                    \0",
  373. "                Invalid delay specified.                            \0",
  374. "                No delay will be done.                              \0",
  375. "                                                                    \0",
  376.  
  377. "     AUDIO_UPDATE with this DEMO program requires the use of the    \0",
  378. "     /p option if playing data or the /r option if recording data   \0",
  379. "     with at least 3 buffers specified.                             \0",
  380. "     AUDIO_UPDATE will not be used.                                 \0",
  381.  
  382. "                                                                    \0",
  383. "     AUDIO_UPDATE (/u) is not supported for MIDI mode in this       \0",
  384. "     DEMO program.                                                  \0",
  385. "                                                                    \0",
  386.  
  387. "                                                                    \0",
  388. "     AUDIO_UPDATE (/u) is not supported for the RECORD operation    \0",
  389. "     in this DEMO program.                                          \0",
  390. "                                                                    \0"
  391.  
  392. };
  393.  
  394. /*****************************************************************************/
  395. /* Help Messages  70 characters wide / 9 lines each                          */
  396. /*****************************************************************************/
  397. #define HELP_NUM   13
  398. #define HELP_LINE  9
  399.  
  400. #define NOFNAMEP   0
  401. #define NODDINSTAL 1
  402. #define PLAYING1   2
  403. #define ENTERPR    3
  404. #define NOFNAMER   4
  405. #define RECORD1    5
  406. #define MODEDEFS   6
  407. #define MODEPCM    7
  408. #define MODEAVC    8
  409. #define MODELAW    9
  410. #define MODECVSD   10
  411. #define INPUTLIST  11
  412. #define OUTPUTLIST 12
  413.  
  414. char            help_msg      [HELP_NUM][HELP_LINE][70] = {
  415. "                                                                    \0",
  416. "                                                                    \0",
  417. "                                                                    \0",
  418. "     Please enter the name of the MIDI standard file or the         \0",
  419. "     Waveform file that you would like to hear played on            \0",
  420. "     the adapter.                                                   \0",
  421. "                                                                    \0",
  422. "                                                                    \0",
  423. "                                                                    \0",
  424.  
  425. "      Unable to locate the AUDIO device: \0",
  426. "      Please ensure that the AUDIO Device Driver is installed.      \0",
  427. "      This requires the following statment in the CONFIG.SYS file:  \0",
  428. "          DEVICE = <drive>: <path> <device driver name>.sys         \0",
  429. "      After entering this in the config.sys file, reboot the        \0",
  430. "      system to install the device driver and run the demo again.   \0",
  431. "                                                                    \0",
  432. "      This may also occur if the adapter is being exclusively used  \0",
  433. "      by another process or all tracks are currently being used.    \0",
  434.  
  435. "  Playing data from:   \0",
  436. "  Using Device Driver: \0",
  437. "                                                                    \0",
  438. "  Status:  \0",
  439. "  Volume:  \0",
  440. "  Balance: \0",
  441. "  Total bytes played:  \0",
  442. "  Total bytes written: \0",
  443. "                                                                    \0",
  444.  
  445. "                                                                    \0",
  446. "                                                                    \0",
  447. "    Please enter either a 'P' to play a music data file             \0",
  448. "                            or                                      \0",
  449. "    enter a 'R' to record music and create a standard MIDI file.    \0",
  450. "                                                                    \0",
  451. "                                                                    \0",
  452. "                                                                    \0",
  453. "                                                                    \0",
  454.  
  455. "                                                                    \0",
  456. "                                                                    \0",
  457. "                                                                    \0",
  458. "     Please enter the name of the MIDI standard file that you would \0",
  459. "     like to be created from the music being recorded.              \0",
  460. "                                                                    \0",
  461. "                                                                    \0",
  462. "                                                                    \0",
  463. "                                                                    \0",
  464.  
  465. "                                                                    \0",
  466. "  Recording MIDI data to: \0",
  467. "  Using Device Driver:    \0",
  468. "                                                                    \0",
  469. "  Status: \0",
  470. "                                                                    \0",
  471. "  Total bytes read: \0",
  472. "                                                                    \0",
  473. "                                                                    \0",
  474.  
  475. "   The following is a list of recognized modes:                     \0",
  476. "                                                                    \0",
  477. "   Standard MIDI files   :  MIDI                                    \0",
  478. "   ADPCM files           :  ADPCM                                   \0",
  479. "   Mu-Law Companding     :  MU_LAW                                  \0",
  480. "   A-Law Companding      :  A_LAW                                   \0",
  481. "   Pulse Code Modulation :  PCM                                     \0",
  482. "                         :  CVSD                                    \0",
  483. "                                                                    \0",
  484.  
  485. "   Enter the combination as: xKys                                   \0",
  486. "      where x - sample rate                                         \0",
  487. "            y - bits per sample                                     \0",
  488. "            s - letter 'S' if you would like stereo                 \0",
  489. "                                                                    \0",
  490. "   Supported sampling rates :  7  8  11  22  315  44  48            \0",
  491. "   Supported bits per sample:  8  16                                \0",
  492. "                                                                    \0",
  493. "   Example: 8K8S - 8k sample rate, 8 bits per sample, stereo mode   \0",
  494.  
  495. "                                                                    \0",
  496. "   The following is a list of recognized ADPCM modes:               \0",
  497. "                                                                    \0",
  498. "                   VOICE                                            \0",
  499. "                   MUSIC                                            \0",
  500. "                   STEREO                                           \0",
  501. "                   HQ                                               \0",
  502. "                                                                    \0",
  503. "                                                                    \0",
  504.  
  505. "   Enter the combination as: xKys                                   \0",
  506. "      where x - sample rate                                         \0",
  507. "            y - bits per sample                                     \0",
  508. "            s - letter 'S' if you would like stereo                 \0",
  509. "                                                                    \0",
  510. "   Supported sampling rates :  7  8  11  22  315  44  48            \0",
  511. "   Supported bits per sample:  8                                    \0",
  512. "                                                                    \0",
  513. "   Example: 8K8S - 8k sample rate, 8 bits per sample, stereo mode   \0",
  514.  
  515. "                                                                    \0",
  516. "   The following is a list of recognized CVSD modes:                \0",
  517. "                                                                    \0",
  518. "                   0                                                \0",
  519. "                   1                                                \0",
  520. "                   2                                                \0",
  521. "                   3                                                \0",
  522. "                   4                                                \0",
  523. "                   5                                                \0",
  524.  
  525. "   The following is a list of recognized inputs:                    \0",
  526. "                                                                    \0",
  527. "   NULL_INPUT           0         HANDSET_INPUT            7        \0",
  528. "   STEREO_LINE_INPUT    1         SYNTH_INPUT              8        \0",
  529. "   LEFT_LINE_INPUT      2         DIGITAL_PHONE_LINE_INPUT 9        \0",
  530. "   RIGHT_LINE_INPUT     3         DIGITAL_HANDSET_INPUT    10       \0",
  531. "   MIC_INPUT            4         MIDI_IN_PORT             11       \0",
  532. "   BOOSTED_MIC_INPUT    5         LOOPBACK                 12       \0",
  533. "   PHONE_LINE_INPUT     6                                           \0",
  534.  
  535. "   The following is a list of recognized outputs:                   \0",
  536. "                                                                    \0",
  537. "   NULL_OUTPUT           0         PHONE_LINE_OUTPUT         6      \0",
  538. "   STEREO_LINE_OUTPUT    1         HANDSET_OUTPUT            7      \0",
  539. "   LEFT_LINE_OUTPUT      2         SYNTH_OUTPUT              8      \0",
  540. "   RIGHT_LINE_OUTPUT     3         DIGITAL_PHONE_LINE_OUTPUT 9      \0",
  541. "   SPEAKER_OUTPUT        4         DIGITAL_HANDSET_OUTPUT    10     \0",
  542. "   HEADSET_OUTPUT        5         MIDI_OUT_PORT             11     \0",
  543. "                                                                    \0"
  544. };
  545.  
  546. /*****************************************************************************/
  547. /* Warning Messages 70 characters wide / 4 lines each                        */
  548. /*****************************************************************************/
  549. #define WARNING_NUM  13
  550. #define WARNING_LINE 3
  551.  
  552. #define BESTFIT   0
  553. #define NOMODE    1
  554. #define DISCARD   2
  555. #define NOTES     3
  556. #define UNCHUNK   4
  557. #define TPQNVAL   5
  558. #define NORATE    6
  559. #define NOADPCM   7
  560. #define UNDERRUN  8
  561. #define OVERRUN   9
  562. #define NOCVSD    10
  563. #define INPINVALID 11
  564. #define OUTINVALID 12
  565.  
  566. char            warning_msg   [WARNING_NUM][WARNING_LINE][70] = {
  567. "         The configuration specified for the initialization         \0",
  568. "         of the device driver is not supported.  The device         \0",
  569. "         driver has been configured to the closest fit possible.    \0",
  570.  
  571. "         No mode was entered or mode entered was not recognized.    \0",
  572. "         Please enter mode again.                                   \0",
  573. "                                                                    \0",
  574.  
  575. "                                                                    \0",
  576. "         Discarding received data bytes: \0",
  577. "                                                                    \0",
  578.  
  579. "                                                                    \0",
  580. "         Warning: More NOTE OFFs than NOTE ONs                      \0",
  581. "                                                                    \0",
  582.  
  583. "                                                                    \0",
  584. "         Warning: Ignoring unrecognized chunk                       \0",
  585. "                                                                    \0",
  586.  
  587. "        The ticks per quarter note must be a multiple of 24         \0",
  588. "        with the lowest supported value of 48 and a maximum         \0",
  589. "        of 384 ticks per quarter note.                              \0",
  590.  
  591. "         No sample rate/bits per sample was entered or it was       \0",
  592. "         not recognized as a supported combination.                 \0",
  593. "         Please enter again.                                        \0",
  594.  
  595. "         ADPCM option was not recognized as a supported option.     \0",
  596. "                                                                    \0",
  597. "         Please enter again.                                        \0",
  598.  
  599. "                                                                    \0",
  600. "                  Underrun Occurred                                 \0",
  601. "                                                                    \0",
  602.  
  603. "                                                                    \0",
  604. "                  Overrun Occurred                                  \0",
  605. "                                                                    \0",
  606.  
  607. "         CVSD option was not recognized as a supported option.      \0",
  608. "                                                                    \0",
  609. "         Please enter again.                                        \0",
  610.  
  611. "                                                                    \0",
  612. "       Invalid input source specified.                              \0",
  613. "                                                                    \0",
  614.  
  615. "                                                                    \0",
  616. "       Invalid output source specified.                             \0",
  617. "                                                                    \0"
  618.  
  619. };
  620.  
  621. /*****************************************************************************/
  622. /* Command Line Argument Help / 19 lines each                                */
  623. /*****************************************************************************/
  624. #define CLHELP_NUM  2
  625. #define CLHELP_LINE 19
  626.  
  627. #define HELPHELP  0
  628. #define BATCHHELP 1
  629.  
  630. char            clhelp_msg   [CLHELP_NUM][CLHELP_LINE][70] = {
  631. "     Format for running:   DEMO [options]                           \0",
  632. "/C x mask   Use callback function where x: unique number 1-9 mask:  \0",
  633. "            DATA-256 IOBUF-1024 BLOCK-512 ERROR-2048 UNDERRUN-4096  \0",
  634. "/D x        Delay to add to any volume/balance changes              \0",
  635. "/I          Want to specify input other than default                \0",
  636. "/M x        Monitor for Record 0=off 1=uncompressed 3=compressed    \0",
  637. "/N x        Specify audio device number - DEFAULT = 1               \0",
  638. "/O          Want to specify output other than default               \0",
  639. "/P x y {y}  Specify buffer size(s) for Play operation where x       \0",
  640. "            specifies the number of buffers and y {y} specifies the \0",
  641. "            lengths of the buffers. Buffer size must be <65000 bytes\0",
  642. "            DEFAULT - 1 buffer of 60000 bytes                       \0",
  643. "/R x y {y}  Same as /P option, but for Record operation.            \0",
  644. "/S          Suppress display of byte counts (default no suppression)\0",
  645. "/T          Display the position value at the end of the operation. \0",
  646. "/U          Use AUDIO_UPDATE function                               \0",
  647. "/V x        Master Volume - where x is the value for master volume  \0",
  648. "/W          Use AUDIO_WAIT function to end the song(default no wait)\0",
  649. "                                                                    \0",
  650.  
  651. "format for /B option: /B <function> <filename> <mode> <time>        \0",
  652. "                                                                    \0",
  653. "where <function>: p - PLAY       r - RECORD                         \0",
  654. "      <filename>: name of file to be played/recorded                \0",
  655. "      <mode>    : 0  - MIDI                                         \0",
  656. "                : 1  - ADPCM VOICE                                  \0",
  657. "                : 2  - ADPCM MUSIC                                  \0",
  658. "                : 3  - ADPCM STEREO                                 \0",
  659. "                : 4  - ADPCM HQ                                     \0",
  660. "         PCM    : 10 - 8K8        18 - 8K8S       70 - 7K8          \0",
  661. "                : 11 - 8K16       19 - 8K16S      71 - 7K16         \0",
  662. "                : 12 - 11K8       20 - 11K8S      72 - 315K8        \0",
  663. "                : 13 - 11K16      21 - 11K16S     73 - 315K16       \0",
  664. "                : 14 - 22K8       22 - 22K8S      74 - 48K8         \0",
  665. "                : 15 - 22K16      23 - 22K16S     75 - 48K16        \0",
  666. "                : 16 - 44K8       24 - 44K8S    (add 10 for stereo  \0",
  667. "                : 17 - 44K16      25 - 44K16S    for modes 70-75)   \0",
  668. "      <time>    : Number of seconds to record                       \0",
  669. "      MU-LAW = PCM+20          A-LAW = PCM+40                       \0"
  670. };
  671.  
  672.  
  673. /*****************************************************************************/
  674. /* Extra Messages Inside existing messages / 1 line each                     */
  675. /*****************************************************************************/
  676. #define EXTRA_NUM  2
  677.  
  678. #define POSITION  0
  679. #define CBCOUNT   1
  680.  
  681. char            extra_msg   [EXTRA_NUM][70] = {
  682. "  Position: \0",
  683.  
  684. "  Callback Count: \0"
  685. };
  686.  
  687.  
  688. /*****************************************************************************/
  689. /* File Type Messages                                                        */
  690. /*****************************************************************************/
  691. #define FILE_TYPE  43
  692.  
  693. /* Already #defined in */
  694. #define  MIDI_MODE       0
  695. #define  AVC_VOICE       1
  696. #define  AVC_MUSIC       2
  697. #define  AVC_STEREO      3
  698. #define  AVC_HQ          4
  699. #define  PCM8k8b         5
  700. #define  PCM11k8b        6
  701. #define  PCM22k8b        7
  702. #define  PCM44k8b        8
  703. #define  PCM8k16b        9
  704. #define  PCM11k16b       10
  705. #define  PCM22k16b       11
  706. #define  PCM44k16b       12
  707. #define  OTHER8bPCM      13
  708. #define  OTHER16bPCM     14
  709. #define  SOURCE_MIX_MODE 15
  710. #define  MULAW8K        16
  711. #define  MULAW11K       17
  712. #define  MULAW22K       18
  713. #define  MULAW44K       19
  714. #define  ALAW8K         20
  715. #define  ALAW11K        21
  716. #define  ALAW22K        22
  717. #define  ALAW44K        23
  718. #define  CLAIM_HDWR_MODE 24
  719. #define  CVSD_0          25
  720. #define  CVSD_1          26
  721. #define  CVSD_2          27
  722. #define  CVSD_3          28
  723. #define  CVSD_4          29
  724. #define  CVSD_5          30
  725. #define  PCM7k8b         31
  726. #define  PCM315k8b       32
  727. #define  PCM48k8b        33
  728. #define  PCM7k16b        34
  729. #define  PCM315k16b      35
  730. #define  PCM48k16b       36
  731. #define  MULAW78K        37
  732. #define  MULAW315K       38
  733. #define  MULAW48K        39
  734. #define  ALAW78K         40
  735. #define  ALAW315K        41
  736. #define  ALAW48K         42
  737.  
  738. char            file_type_msg   [FILE_TYPE][20] = {
  739. "MIDI ",
  740. "ADPCM VOICE ",
  741. "ADPCM MUSIC ",
  742. "ADPCM STEREO ",
  743. "ADPCM HIGH QUALITY ",
  744. "PCM 8k 8bit ",
  745. "PCM 11K 8bit ",
  746. "PCM 22K 8bit ",
  747. "PCM 44K 8bit ",
  748. "PCM 8K 16bit ",
  749. "PCM 11K 16bit ",
  750. "PCM 22K 16bit ",
  751. "PCM 44K 16bit ",
  752. "Other 8bit PCM ",
  753. "Other 16bit PCM ",
  754. "Source Mix ",
  755. "Mu-Law 8K 8bit ",
  756. "Mu-Law 11K 8bit ",
  757. "Mu-Law 22K 8bit ",
  758. "Mu-Law 44K 8bit ",
  759. "A-Law 8K 8bit ",
  760. "A-Law 11K 8bit ",
  761. "A-Law 22K 8bit ",
  762. "A-Law 44K 8bit ",
  763. "Claim Hardware ",
  764. " CVSD - 0 ",
  765. " CVSD - 1 ",
  766. " CVSD - 2 ",
  767. " CVSD - 3 ",
  768. " CVSD - 4 ",
  769. " CVSD - 5 ",
  770. "PCM 7875K 8bit ",
  771. "PCM 31500K 8bit ",
  772. "PCM 48000K 8bit ",
  773. "PCM 7875K 16bit ",
  774. "PCM 31500K 16bit ",
  775. "PCM 48000K 16bit ",
  776. "Mu-Law 7875K 8bit ",
  777. "Mu-Law 31500K 8bit ",
  778. "Mu-Law 48000K 8bit ",
  779. "A-Law 7875K 16bit ",
  780. "A-Law 31500K 16bit ",
  781. "A-Law 48000K 16bit "
  782. };
  783.  
  784.  
  785. /*****************************************************************************/
  786. /* Mone/Stereo Messages                                                      */
  787. /*****************************************************************************/
  788. #define MONO_STEREO 3
  789.  
  790. #define NONE      0
  791. #define MONO      1
  792. #define STEREO    2
  793.  
  794.  
  795. char            mono_stereo_msg [MONO_STEREO][7] = {
  796. "    ",
  797. "Mono",
  798. "Stereo"
  799. };
  800.  
  801.